import 'package:flutter/material.dart';

/** 左右布局
 * ListView.builder
 * ListTile
 */
class ListWidget05 extends StatelessWidget {
  const ListWidget05({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Color(0xffff0000),
        title: Text('ListView.build'),
      ),
      body: GestureDetector(
        child: ListView.builder(
          ///item设置
          itemBuilder: (BuildContext context, int index) {
            return ListTile(
              title: Text('用户设置'),
              trailing: IconButton(onPressed: (){}, icon: Icon(Icons.keyboard_arrow_right)),
            );
    
          },
          itemCount: 20,
        ),
      ),
    );
  }
}
